/* 
 * File:   project_group_item.cpp
 * Author: jolo
 * 
 * Created on: 11. Oktober 2011, 15:19
 * Lincense: New BSD License (The BSD 2-Clause License)
 */

#include "project_group_item.hpp"

#include <model/repository.hpp>
#include <model/project.hpp>

#include "project_item.hpp"

namespace gui
{

    project_group_item::project_group_item(model::repository_ptr r)
    : widgets::group_item(QObject::tr("Projects"), r)
    {

        BOOST_FOREACH(model::project_ptr p, r->projects())
        {
            project_item* i = new project_item(p);
            appendRow(i);
        }
    }

    project_group_item::~project_group_item()
    {
    }

}